package main

import (
	_ "gin-demo/auth"
	_ "gin-demo/docs"
	"gin-demo/sysinit"
	"log"
	// _ "github.com/swaggo/gin-swagger/example/basic/docs"
)

// @title GIN DEMO API
// @version 0.1
// @description Golang Gin Web框架的Demo代码.
// @termsOfService http://swagger.io/terms/

// @contact.name ZhuYing
// @contact.url https://gitee.com/zhuying/gin-demo
// @contact.email win19890412@163.com

// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html

// @host locahost:8080
// @BasePath /
func main() {
	if err := sysinit.Router.Run(sysinit.Config.GetString("app.host") + ":" + sysinit.Config.GetString("app.port")); err != nil {
		log.Fatal(err)
	}
}
